//取一个整数a从右端开始的4~7位
public class Program32 {
    public static void main(String[] args) {
        int a = 12345678;
        String string = String.valueOf(a);
        System.out.println(string.substring(3,7));
    }
}
